<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>商品详情</title>
<link
	href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
	rel="stylesheet">
	<script src="https://code.jquery.com/jquery.js"></script>
<!-- 导入JQuery方便使用ajax插件 -->
<script
	src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!-- 导入bootstrap核心js文件 -->
</head>
<body>
<nav class="navbar navbar-default navbar-static-top">
  <div class="container-fluid">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>                        
      </button>
      <a class="navbar-brand" id="top" style='padding-left:300px;color:red' href="/ProfessionalDesign/login">亲，请登录</a>
      
    </div>
    <div class="collapse navbar-collapse" id="myNavbar">
      <ul class="nav navbar-nav" style="padding-left:100px">
        <li><a href="/ProfessionalDesign/sign">免费注册</a></li>
        <li><a href="/ProfessionalDesign/homepage">购物主页</a></li>
        <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">我的<span class="caret"></span></a>
              <ul class="dropdown-menu">
                <li><a href="#">我的信息</a></li>
                <li><a href="#">订单信息</a></li>
              </ul>
            </li>
        <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">购物车 <span class="caret"></span></a>
              <ul class="dropdown-menu">
                <li><a href="#">Action</a></li>
                <li><a href="#">Another action</a></li>
                <li><a href="#">Something else here</a></li>
                <li role="separator" class="divider"></li>
                <li class="dropdown-header">Nav header</li>
                <li><a href="#">Separated link</a></li>
                <li><a href="#">One more separated link</a></li>
              </ul>
            </li>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">收藏夹 <span class="caret"></span></a>
              <ul class="dropdown-menu">
                <li><a href="#">收藏的店铺</a></li>
                <li><a href="#">收藏的商品</a></li>
              </ul>
            </li>
      </ul>
          <ul class="nav navbar-nav navbar-right" style="padding-right:300px">
            <li class="active"><a href="../navbar/">商品分类</a></li>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">商家中心<span class="caret"></span></a>
              <ul class="dropdown-menu">
                <li><a href="#">已卖出的宝贝</a></li>
                <li><a href="#">免费开店</a></li>
              </ul>
            </li>
          </ul>
    </div>
  </div>
</nav>
<!-- 商品信息、店铺信息展示 -->
		<div class="row clearfix"
			style="background-color: white;border-top: inset;border-top-width: 16px;">
<!-- 商品图片展示 -->
			<div class="col-md-1 column"></div>
			<div class="col-md-3 column">
			<div style="width: 330px;border-color: black;border-style: groove;">
			<img src="${gooddetail.g_image}" style="width:325px">
			</div>
			</div>
			<div class="col-md-5 column">
			<ul style="display: block;font-size: 30px;list-style: none;padding-left: 20px;">
				<li>商品名称：${gooddetail.good_name}</li>
				<li>类别：${gooddetail.type}</li>
				<li>规格：${gooddetail.good_size}</li>
				<li>价格：${gooddetail.price}元</li>
				<li>商品库存数：${gooddetail.number}件</li>
				<li>商品已售：${gooddetail.buy_times}</li>
				<li>商品描述：${gooddetail.good_desc}</li>
				<li>是否上架：${gooddetail.issale}</li>
				<li></li>
			</ul>
			<div style="margin-left:20px">
			<a href="/ProfessionalDesign/issaleToNo?good_id=${gooddetail.good_id}&shop_id=${shop_id}&shop_name=${shop_name}" class="btn btn-primary btn-lg">商品下架</a>
			<a href="/ProfessionalDesign/toUpdate?good_id=${gooddetail.good_id}&shop_id=${gooddetail.shop_id}&shop_name=${shop_name}" class="btn btn-primary btn-lg">商品信息修改</a>
			<a href="/ProfessionalDesign/deletegoods?good_id=${gooddetail.good_id}&shop_id=${gooddetail.shop_id}" class="btn btn-primary btn-lg">删除商品</a>
			</div>
			<p id="alert"></p>
			</div>	
			</div>
			
			
			
<div class="jumbotron text-center" style="margin-top:100px;margin-bottom:0">
  <br>
  <p>© 2022 ProfessionalDesign.com 版权所有</p>
  <a>关于我们</a>|
  <a>合作伙伴</a>|
  <a>营销中心</a>|
  <a>联系客服</a>|
  <a>开放平台</a>|
  <a>诚征英才</a>|
  <a>联系我们</a>|
  <a>网站地图</a>|
  <a>法律声明及隐私权政策</a>
</div>
</body>
<style>

.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
    color: red;
}
.navbar-default .navbar-nav>li>a:hover,
.navbar-default .navbar-nav>li>a:focus {
    color: red;
}

</style>
<script>
$(function(){
if(${shop_id!=null}){
	$("#top").html('尊贵的店家'+'"'+'${shop_name}'+'"'+'欢迎您');
}else{
	$("a").attr("href","${pageContext.request.contextPath}/login");
}
})
</script>
</html>